package com.fowo.api.model.stock;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 出库单子表 导入导出辅助模型 */
@Data
public class StockOutProductExcelPo {

  @ExcelProperty(value = "所属出库单")
  private String stockOutIdRemark;

  @ExcelIgnore
  @ExcelProperty(value = "所属出库单")
  private Long stockOutId;

  @NotNull(message = "产品不能为空")
  @ExcelProperty(value = "*产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*产品")
  private Long productId;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 500, message = "产品名称长度不能超过20")
  @ExcelProperty(value = "产品名称")
  private String productName;

  @Size(max = 50, message = "商铺名称长度不能超过20")
  @ExcelProperty(value = "商铺名称")
  private String shopName;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @NotNull(message = "出库数量不能为空")
  @ExcelProperty(value = "*出库数量")
  private Integer quantity;

  @ExcelProperty(value = "可用出库量")
  private Integer productGoodNum;

  @ExcelProperty(value = "次品出库量")
  private Integer productBadNum;

  @NotNull(message = "单价不能为空")
  @ExcelProperty(value = "*单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "小计")
  private java.math.BigDecimal subtotal;

  @ExcelProperty(value = "当期出库成本金额")
  private java.math.BigDecimal currentIssueCostAmount;
}
